<extend name="Public/base" />
<block name="body">
    <!-- 标题栏 -->
    <div class="main-title">
    </div>
    <form action="{:U('index')}" method="POST">
        <div class="cf">
            <div class="fl">
                <a class="btn" href="{:U('add',array('ps'=>$ps))}">新 增</a>

            </div>

            <!-- 高级搜索 -->
            <div class="search-form fr cf">
                <!--<button class="btn" type="submit">筛选</button>-->
            </div>
        </div>
    </form>

    <!-- 数据列表 -->
    <div class="data-table table-striped">
        <table class="">
            <thead>
                <tr>
                    <th class="">标题</th>
                    <th class="">广告图</th>
                    <th class="">点击跳转方式</th>
                    <th class="">排序值</th>
                    <th class="">开始时间</th>
                    <th class="">结束时间</th>
                    <th class="">操作</th>             
                </tr>
            </thead>
            <tbody>
            <notempty name="_list">
                <volist name="_list" id="vo">
                    <tr>
                        <td>{$vo.title} </td>
                        <td>
                            <img src="__ROOT__{$vo['img_url']}" width='80' height='50'>
                        </td>
                        <td> 
                            <?php echo $jump_type[$vo['type']]?>
                        </td>
                        <td>{$vo.sort}</td>
                        <td>{$vo.start_time}</td>
                        <td>{$vo.end_time}</td>
                        <td>
                            <a href="<?php echo U('add',array('id'=>$vo['ad_id']))?>" >编辑</a>
                            <a href="<?php echo U('del',array('id'=>$vo['ad_id']))?>"  class="confirm ajax-get" >删除</a>
                        </td>

                    </tr>
                </volist>
                <else/>
                <td colspan="10" class="text-center"> aOh! 暂时还没有内容! </td>
            </notempty>
            </tbody>
        </table>
    </div>
    <div class="page">
        {$_page}
    </div>
</block>

<block name="script">
    <script type="text/javascript">
        //导航高亮
        highlight_subnav("{:U('Ad/index',array('ps'=>$ps))}");
    </script>
</block>
